package com.young.ums.util;

import com.young.common.core.concurrent.YoungThreadPoolExecutor;

import java.util.concurrent.ExecutorService;

/**
 * ums线程池
 *
 * @author wangjy
 * @date 2021/11/13 10:24:14
 */
public class UmsThreadPoolHolder {
    /**
     * 线程池
     */
    private static final ExecutorService threadPool = YoungThreadPoolExecutor.builder("UmsThreadPool").build();

    /**
     * 执行异步任务
     * @param command
     */
    public static void execute(Runnable command) {
        threadPool.execute(command);
    }
}
